package com.corgi.test.retry;

import java.lang.annotation.*;

/**
 * Retryable
 *
 * @title: Retryable
 * @description:
 * @author: dengmiao
 * @create: 2020-06-10 10:06
 **/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Retryable {

    /**
     * 最大重复次数
     * @return
     */
    int maxAttempts() default 0;
}
